//
//  SSBaseNavigationController.swift
//  BigProject
//
//  Created by Gmc on 2018/6/12.
//  Copyright © 2018年 Gmc. All rights reserved.
//

import UIKit

class SSNavigationController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if (CheckDate.check(date: "04-04") || CheckDate.check(date: "12-13")) {
            navigationBar.tintColor = UIColor.colorWithHexString(hexString: "272727")
        } else {
            navigationBar.tintColor = UIColor.colorWithHexString(hexString: "00BFFF")
        }

        
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        if self.viewControllers.count == 1 {
            viewController.hidesBottomBarWhenPushed = true
        }
        return super.pushViewController(viewController, animated: animated)
    }
    
    override func popViewController(animated: Bool) -> UIViewController? {
        return super.popViewController(animated: animated)
    }

}
